import { Define, EntityObjectFactory } from 'tiny-entity2';
const EntityObjectType = EntityObjectFactory.GetEntityObjectType(process.env.dataBaseType || 'mysql');
@Define.Table({ TableName: "accountusername" })
export class AccountUserName extends EntityObjectType<AccountUserName>{
    @Define.PrimaryKey()
    id: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    accountId: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    username: string;

    @Define.Column({
        DataType: Define.DataType.VARCHAR
    })
    type: string;
}

export const AccountUserNameType = {
    Wechat: 'wechat',
    Alipay: 'alipay',
    Email: 'email',
    Phone: 'phone'
}